< previous page page_720 next page >

Page 720
You probably are aware that many things are happening with the Internet these days. In particular, the World Wide Web has gained enormous popularity. It seems that everywhere you turn, everyone has a Web sitefrom car manufacturers to charitable organizations to the guy next door. Internet stuff is everywhere. And although just having a static Web page used to be acceptable, more and more people and organizations are providing dynamic content on their pages. These interactive Web pages do a lot more than just display fixed information. Seeing Web pages that act like applications is commonplace now, and several tools are available to help you create such pages.
When you first look at creating interactive content, the process can appear daunting. I know it did for me. More often than not, the concern I hear is not "Can I do this?" but "What's the best way to do this?" When you try to think of ways to program for the Web, dozens of terms may come to mind: Perl, CGI, Active Server Pages, VBScript, and Java, to name a few. The ActiveX documents discussed in this chapter are not necessarily the best choice for all occasions, but they do make Internet programming accessible to VB programmers.
Understanding ActiveX Documents
Because ActiveX documents are perfect for use on the World Wide Web, this chapter will begin with a quick refresher course. You probably have become familiar enough with Web pages to know that they are basically just document files. Web files are similar to Word documents except that they are written in a special format: HTML (which stands for Hypertext Markup Language). Just as Word is the viewer for DOC files, a Web browser (such as Netscape or Internet Explorer) is used to view HTML files. HTML files on the Internet have an address, or URL (Uniform Resource Locator), that is used to locate a specific document.
The Web began as just a bunch of linked documents. However, a static document cannot produce the level of interactivity you see today. Two things about the Web have made this change possible:
The way Web pages are retrieved
Browser enhancements
The Hypertext Transfer Protocol, or HTTP, is the means by which your browser and the Web server communicate. The browser simply requests an URL and then displays the returned HTML stream.
Notice that I use the word "requests"; this is an important concept. Requesting a file is very different from opening one on your hard drivehence the need to have a protocol. Think of this process as being similar to your asking a friend to send you a document via e-mail. With this process, unlike your opening a document on your hard drive, your friend could edit the document before sending it or send you a completely different document. In a similar manner, logic can be placed on the Web server to modify the returned document based on any number of criteria, including information from user.

 
< previous page page_720 next page >